<!DOCTYPE html>
<!-- saved from url=(0050)http://www.hasbei.com/search?kw=%E6%8B%94%E7%89%99 -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--<base target="_blank">-->
	<base href="." target="_blank">
    <title>拔牙-有贝口腔网</title>
    <meta name="keywords" content="拔牙,口腔知识,口腔资讯,口腔问题">
    <meta name="description" content="拔牙,有贝口腔网为用户提供专业的口腔资讯，口腔知识，口腔问题，口腔卫生等综合服务型网站">
    
	<link rel="stylesheet" href="/css/reset.css">
	<link rel="stylesheet" href="/css/commone.css">
	<link rel="stylesheet" href="/css/commtwo.css">
	<link rel="stylesheet" href="/css/commthree.css">
	<link rel="shortcut icon" href="http://www.hasbei.com/static/images/icon.png" type="image/x-icon">

    <link rel="stylesheet" media="screen and (min-width:481px)" href="/css/searchlist.css">
    <link rel="stylesheet" media="screen and (max-width:480px)" href="/css/searchlist(1).css">

	<script src="/js/hm.js"></script>
	<script type="text/javascript">
		var basePath ="/";
	</script>
	<script src="/js/common.js"></script>
	<script src="/js/jquery-3.5.1.min.js"></script>
	<script src="/js/footfixed.js"></script>
	<script src="/js/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
</head>
	<body>
		<div class="content">
			<div th:replace="./common/hasbei_top" ></div>
			<div th:if="${auto}" th:replace="./common/hasbei_top_user" ></div>

			<div class="content-main">
				 <!-- <th:block th:insert="top::tab"/> -->
				<div class="search-info">
					<div class="search-content">
						<div class="search-area">
						   <form action="/index/search" method="post" target="_self">
							<div class="main-search">
								<input class="main-search-input" id="searchInput" type="text" name="kw" placeholder="请输入相关口腔信息搜索" th:value="${kw}">
								 <label>
									<img src="/searchSatic/search-icon.png">
									<input type="submit" id="searchBtn" value="搜索">
								</label>
							</div>
							</form>
							<div class="search-tuijian" style="display:none">
								<span>热门搜索</span>
								<div>
									<a href="http://www.hasbei.com/">矫正器</a>
									<a href="http://www.hasbei.com/">矫正器</a>
									<a href="http://www.hasbei.com/">矫正器</a>
									<a href="http://www.hasbei.com/">矫正器</a>
								</div>
								<span>换一组看看</span>
							</div>
						</div>
						<div class="search-list">
							<div class="search-result">为您找到相关结果约<span th:text="${pu.getTotal()}"></span>个</div>

							<div class="search-list-item"  th:each="var,i:${pu.getData()}" th:if="${var.getType()==20}">
								<div class="search-item-text">
									<div class="search-item-title">
										<a th:href="@{'/answers/'+${var.aid}}" >
											<span  class="searList" th:text="${var.getTitle()}">拔牙三天后，可以刷牙了吗?</span>
										</a>
									</div>
									<div class="search-item-desc">
										<a th:href="@{'/answers/'+${var.aid}}" >
											<span class="searList" th:text="${var.getIntroduction()}">拔牙三天后是可以正常刷牙的，但是尽量避免刺激到拔牙创口的位置。</span>
										</a>
									</div>
									<div class="list-item-info">
											<a th:href="${'/answers/main?indexPage=1&toothType='+var.tid}"><span class="tui-jian" th:text="${var.tname}">拔牙</span></a>
											<a th:href="${'/user/personage/'+var.uid}" class="user-img-name">
												  <img th:src="${var.getUimgpath()}">
												  <span class="user-name" th:value="${var.getUid()}" th:text="${var.getUsername()}">侍画</span>
											 </a>

											<div class="ping-lun">
												<a th:href="@{'/answers/'+${var.aid}}">
													<img src="/searchSatic/pinglun.png"><span th:text="${var.getAnswer_count()}">2</span>回答
												</a>
											</div>
											<div class="shou-cang">
												<a th:href="@{'/answers/'+${var.aid}}">
												<img src="/searchSatic/shoucang.png"><span th:text="${var.getCollection_count()}">2</span>收藏
												</a>
											</div>
											<div class="yue-du">
												<a th:href="@{'/answers/'+${var.aid}}">
													<img src="/searchSatic/yuedu.png"><span th:text="${var.getRead_count()}">35阅读</span>
												</a>
											</div>
											<span class="dotted">·</span>
											<span class="time-before" th:text="${#dates.format(var.getTime(), 'yyyy-MM-dd HH:mm')}">2020-07-22</span>
									</div>
								 </div>
							</div>
							<div class="search-list-item" th:each="var,i:${pu.getData()}" th:if="${var.getType()==10}">
								<div class="search-item-left">
									<a th:href="${'/consult/solo/'+var.aid}">
										<img th:src="${var.imgpath}" alt="有贝口腔网">
									</a>
								</div>
								<div class="search-item-right">
									<div class="search-item-title">
										<a th:href="${'/consult/solo/'+var.aid}">
											<span class="searList" th:text="${var.getTitle()}">注意！吃烧烤也会导致蛀牙</span>
										</a>
									</div>
									<div class="search-item-desc">
										<a th:href="${'/consult/solo/'+var.aid}">
											<span class="searList" th:text="${var.getIntroduction()}">提起烧烤，相信很多朋友此时咽了咽口水，烧烤可谓是生活中不可或缺的美食，每次工作完，约上三两好友撸串，诉说心中烦闷，是当代人的生活写照。然而，最近英国一项研究却发现烧烤会导致蛀牙的出现。</span>
										</a>
									</div>
									<div class="list-item-info">
										<a th:href="${'/consult/type/?type='+var.tid}"><span class="tui-jian" th:value="${var.getTid()}" th:text="${var.tname}">龋齿</span></a>
										<!-- <span class="come-on" th:text="${vo.sourceName}"></span> -->

										<div class="ping-lun">
											<a th:href="${'/consult/solo/'+var.aid}">
												<img src="/icon/pinglun.png">
												<span th:text="${var.getAnswer_count()}">0</span>评论
											</a>
										</div>
										<div class="shou-cang">
											<a th:href="${'/consult/solo/'+var.aid}">
												<img src="/icon/shoucang.png">
												<span th:text="${var.getCollection_count()}">1</span>收藏
											</a>
										</div>

										<div class="yue-du">
											<a th:href="${'/consult/solo/'+var.aid}">
												<img src="/icon/yuedu.png">
												<span th:text="${var.getRead_count()}">1067</span>阅读
											</a>
										</div>
										<span class="dotted">·</span>
										<span class="time-before" th:text="${#dates.format(var.time, 'yyyy-MM-dd HH:mm')}">2020-08-01</span>
									</div>
								</div>
							</div>
						</div>
						<div class="more-content">
							<div class="load-more" style="display:none;">
								<img src="/img/load-more.gif" alt="有贝口腔网">
								<span>加载中</span>
							</div>
							<div class="load-more-two load-more-fade" th:onclick="loadData()">点击加载更多</div>
							<div class="no-data" style="display:none;">-- 没有数据啦,我是有底线的哦 --</div>
						</div>
					</div>

					<div class="aside-left margin-t0">
						<div class="wonderful-top">
							<div class="wonderful-top-title">热搜排行</div>
							<div class="allsee-item">
								<ul>
									<li th:each="var,i:${host}">
										<a href="http://www.hasbei.com/zx/detail/202007151283316478564765696">
											<span class="other-bg" th:text="${i.index+1}">1</span>
											<div th:text="${var.getTitle()}"></div>
										</a>
									</li>
								</ul>
							</div>
						</div>
					</div>

				</div>
			</div>


			<div th:replace="common/hasbei_bottom"></div>
		</div>
	</body>
		<script>
			var current=1;
			var finish=false;
			function loadData(){//加载更多按钮
				if(finish){
					return ;
				}
				$(".load-more").show();
				$(".load-more-two").hide();
				$(".no-data").hide();
				var cateId=$("#cateId").val();
				current++;

				var data={};
				data["startIndex"] = current;
				data["kw"] = $("#searchInput").val();
				$.ajax({
					type: "POST",
					url: basePath + "search/append",
					data: data,
					success: function (data) {
						$(".load-more").hide();
						//如果没有数据了就隐藏
						if(data.length==0){
							finish=true;
							$(".no-data").show();
						}else{
							$(".load-more-two").show();
							$(".search-list").append(data);
						}
					}
				});




			}




			window.onload=function(){
				function getUrlParams(name) { // 不传name返回所有值，否则返回对应值
					var url = window.location.search;
					if (url.indexOf('?') == 1) {
						return false;
					}
					url = url.substr(1);
					url = url.split('&');
					var name = name || '';
					var nameres;
					// 获取全部参数及其值
					for(var i=0;i<url.length;i++) {
						var info = url[i].split('=');
						var obj = {};
						obj[info[0]] = decodeURI(info[1]);
						url[i] = obj;
					}
					// 如果传入一个参数名称，就匹配其值
					if (name) {
						for(var i=0;i<url.length;i++) {
							for (const key in url[i]) {
								if (key == name) {
									nameres = url[i][key];
								}
							}
						}
					} else {
						nameres = url;
					}
					// 返回结果
					return nameres;
				}

				$(".searList").each(function () {
					var str=$(this).text();
					//alert(str);
					var res1 = getUrlParams('kw');
					console.log(res1);
					var substr= "/"+res1+"/g";
					console.log(substr);
					var replaceStr=str.replace(eval(substr),"<span style='color:red;font-weight:bold'>"+res1+"</span>");
					console.log(replaceStr);
					$(this).html(replaceStr);
				});
			}
		</script>
</html>